home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_022 / lemacs / efunc.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  11KB  |  253 lines

  1. /*    EFUNC.H:    MicroEMACS function declarations and names
  2.  
  3.         This file list all the C code functions used by MicroEMACS
  4.     and the names to use to bind keys to them. To add functions,
  5.     declare it here in both the extern function list and the name
  6.     binding table.
  7.  
  8.     Update History:
  9.  
  10.     Daniel Lawrence
  11.         29-jan-86
  12.         - separeted out external declarations to a separate .h file
  13.         - built original name to function binding table
  14.         30-jan-86
  15.         - added command declarations for Fill Paragraph command
  16.         11-feb-86
  17.         - added declaration for help and describe key commands
  18.         13-feb-86
  19.         - added declarations for view-file command
  20.         15-feb-86
  21.         - added declataitons for insert file command
  22.         17-feb-86
  23.         - added declarations for scroll next window up/down
  24.         20-feb-86
  25.         - expanded binding table to make room for new bindings
  26.         24-feb-86
  27.         - added declarations for bind-to-key and unbind-key
  28.           execute named command and describe bindings
  29.         26-feb-86
  30.         - added declarations for execute command
  31.         - changed name of "visit-file" to "find-file"
  32.         - added declaration for execute-buffer command
  33.         27-feb-86
  34.         - added declarations for execute-file command
  35.         3-apr-86
  36.         - added declarations for next-buffer command
  37.         5-apr-86
  38.         - added declarations for kill-paragraph command
  39.         8-apr-86
  40.         - added declarations for add/delete global mode
  41.         8-apr-86
  42.         - added declarations for insert space command
  43. */
  44.  
  45. /*    External function declarations        */
  46.  
  47. extern  int     ctrlg();                /* Abort out of things          */
  48. extern  int     quit();                 /* Quit                         */
  49. extern  int     ctlxlp();               /* Begin macro                  */
  50. extern  int     ctlxrp();               /* End macro                    */
  51. extern  int     ctlxe();                /* Execute macro                */
  52. extern  int     fileread();             /* Get a file, read only        */
  53. extern  int     filefind();        /* Get a file, read write       */
  54. extern  int     filewrite();            /* Write a file                 */
  55. extern  int     filesave();             /* Save current file            */
  56. extern  int     filename();             /* Adjust file name             */
  57. extern  int     getccol();              /* Get current column           */
  58. extern  int     gotobol();              /* Move to start of line        */
  59. extern  int     forwchar();             /* Move forward by characters   */
  60. extern  int     gotoeol();              /* Move to end of line          */
  61. extern  int     backchar();             /* Move backward by characters  */
  62. extern  int     forwline();             /* Move forward by lines        */
  63. extern  int     backline();             /* Move backward by lines       */
  64. extern  int     forwpage();             /* Move forward by pages        */
  65. extern  int     backpage();             /* Move backward by pages       */
  66. extern  int     gotobob();              /* Move to start of buffer      */
  67. extern  int     gotoeob();              /* Move to end of buffer        */
  68. extern  int     setfillcol();           /* Set fill column.             */
  69. extern  int     setmark();              /* Set mark                     */
  70. extern  int     swapmark();             /* Swap "." and mark            */
  71. extern  int     forwsearch();           /* Search forward               */
  72. extern  int     backsearch();           /* Search backwards             */
  73. extern    int    sreplace();        /* search and replace        */
  74. extern    int    qreplace();        /* search and replace w/query    */
  75. extern  int     showcpos();             /* Show the cursor position     */
  76. extern  int     nextwind();             /* Move to the next window      */
  77. extern  int     prevwind();             /* Move to the previous window  */
  78. extern  int     onlywind();             /* Make current window only one */
  79. extern  int     splitwind();            /* Split current window         */
  80. extern  int     mvdnwind();             /* Move window down             */
  81. extern  int     mvupwind();             /* Move window up               */
  82. extern  int     enlargewind();          /* Enlarge display window.      */
  83. extern  int     shrinkwind();           /* Shrink window.               */
  84. extern  int     listbuffers();          /* Display list of buffers      */
  85. extern  int     usebuffer();            /* Switch a window to a buffer  */
  86. extern  int     killbuffer();           /* Make a buffer go away.       */
  87. extern  int     reposition();           /* Reposition window            */
  88. extern  int     refresh();              /* Refresh the screen           */
  89. extern  int     twiddle();              /* Twiddle characters           */
  90. extern  int     tab();                  /* Insert tab                   */
  91. extern  int     newline();              /* Insert CR-LF                 */
  92. extern  int     indent();               /* Insert CR-LF, then indent    */
  93. extern  int     openline();             /* Open up a blank line         */
  94. extern  int     deblank();              /* Delete blank lines           */
  95. extern  int     quote();                /* Insert literal               */
  96. extern  int     backword();             /* Backup by words              */
  97. extern  int     forwword();             /* Advance by words             */
  98. extern  int     forwdel();              /* Forward delete               */
  99. extern  int     backdel();              /* Backward delete              */
  100. extern  int     killtext();             /* Kill forward                 */
  101. extern  int     yank();                 /* Yank back from killbuffer.   */
  102. extern  int     upperword();            /* Upper case word.             */
  103. extern  int     lowerword();            /* Lower case word.             */
  104. extern  int     upperregion();          /* Upper case region.           */
  105. extern  int     lowerregion();          /* Lower case region.           */
  106. extern  int     capword();              /* Initial capitalize word.     */
  107. extern  int     delfword();             /* Delete forward word.         */
  108. extern  int     delbword();             /* Delete backward word.        */
  109. extern  int     killregion();           /* Kill region.                 */
  110. extern  int     copyregion();           /* Copy region to kill buffer.  */
  111. extern  int     spawncli();             /* Run CLI in a subjob.         */
  112. extern  int     spawn();                /* Run a command in a subjob.   */
  113. extern  int     quickexit();            /* low keystroke style exit.    */
  114. extern    int    setmode();        /* set an editor mode        */
  115. extern    int    delmode();        /* delete a mode        */
  116. extern    int    gotoline();        /* go to a numbered line    */
  117. extern    int    namebuffer();        /* rename the current buffer    */
  118. extern    int    gotobop();        /* go to begining/paragraph    */
  119. extern    int    gotoeop();        /* go to end/paragraph        */
  120. extern    int    fillpara();        /* fill current paragraph    */
  121. extern    int    help();            /* get the help file here    */
  122. extern    int    deskey();        /* describe a key's binding    */
  123. extern    int    viewfile();        /* find a file in view mode    */
  124. extern    int    insfile();        /* insert a file        */
  125. extern    int    scrnextup();        /* scroll next window back    */
  126. extern    int    scrnextdw();        /* scroll next window down    */
  127. extern    int    bindtokey();        /* bind a function to a key    */
  128. extern    int    unbindkey();        /* unbind a key's function    */
  129. extern    int    namedcmd();        /* execute named command    */
  130. extern    int    desbind();        /* describe bindings        */
  131. extern    int    execcmd();        /* execute a command line    */
  132. extern    int    execbuf();        /* exec commands from a buffer    */
  133. extern    int    execfile();        /* exec commands from a file    */
  134. extern    int    nextbuffer();        /* switch to the next buffer    */
  135. extern    int    killpara();        /* kill the current paragraph    */
  136. extern    int    setgmode();        /* set a global mode        */
  137. extern    int    delgmode();        /* delete a global mode        */
  138. extern    int    insspace();        /* insert a space forword    */
  139. extern    int    forwhunt();        /* hunt forward for next match    */
  140. extern    int    backhunt();        /* hunt backwards for next match*/
  141.  
  142. #if    V7 & BSD
  143. extern    int    bktoshell();        /* suspend emacs to parent shell*/
  144. extern    int    rtfrmshell();        /* return from a suspended state*/
  145. #endif
  146.  
  147. /*    Name to function binding table
  148.  
  149.         This table gives the names of all the bindable functions
  150.     end their C function address. These are used for the bind-to-key
  151.     function.
  152. */
  153.  
  154. NBIND    names[] = {
  155.     {"add-mode",            setmode},
  156.     {"add-global-mode",        setgmode},
  157.     {"backward-character",        backchar},
  158.     {"begin-macro",            ctlxlp},
  159.     {"begining-of-file",        gotobob},
  160.     {"begining-of-line",        gotobol},
  161.     {"bind-to-key",            bindtokey},
  162.     {"buffer-position",        showcpos},
  163.     {"case-region-lower",        lowerregion},
  164.     {"case-region-upper",        upperregion},
  165.     {"case-word-capitalize",    capword},
  166.     {"case-word-lower",        lowerword},
  167.     {"case-word-upper",        upperword},
  168.     {"change-file-name",        filename},
  169.     {"clear-and-redraw",        refresh},
  170.     {"copy-region",            copyregion},
  171.     {"delete-blank-lines",        deblank},
  172.     {"delete-buffer",        killbuffer},
  173.     {"delete-mode",            delmode},
  174.     {"delete-global-mode",        delgmode},
  175.     {"delete-next-character",    forwdel},
  176.     {"delete-next-word",        delfword},
  177.     {"delete-other-windows",    onlywind},
  178.     {"delete-previous-character",    backdel},
  179.     {"delete-previous-word",    delbword},
  180.     {"describe-bindings",        desbind},
  181.     {"describe-key",        deskey},
  182.     {"end-macro",            ctlxrp},
  183.     {"end-of-file",            gotoeob},
  184.     {"end-of-line",            gotoeol},
  185.     {"exchange-point-and-mark",    swapmark},
  186.     {"execute-buffer",        execbuf},
  187.     {"execute-command-line",    execcmd},
  188.     {"execute-file",        execfile},
  189.     {"execute-macro",        ctlxe},
  190.     {"execute-named-command",    namedcmd},
  191.     {"exit-emacs",            quit},
  192.     {"fill-paragraph",        fillpara},
  193.     {"find-file",            filefind},
  194.     {"forward-character",        forwchar},
  195.     {"goto-line",            gotoline},
  196.     {"grow-window",            enlargewind},
  197.     {"handle-tab",            tab},
  198.     {"hunt-forward",        forwhunt},
  199.     {"hunt-backward",        backhunt},
  200.     {"help",            help},
  201.     {"i-shell",            spawncli},
  202.     {"insert-file",            insfile},
  203.     {"insert-space",        insspace},
  204.     {"kill-paragraph",        killpara},
  205.     {"kill-region",            killregion},
  206.     {"kill-to-end-of-line",        killtext},
  207.     {"list-buffers",        listbuffers},
  208.     {"move-window-down",        mvdnwind},
  209.     {"move-window-up",        mvupwind},
  210.     {"name-buffer",            namebuffer},
  211.     {"newline",            newline},
  212.     {"newline-and-indent",        indent},
  213.     {"next-buffer",            nextbuffer},
  214.     {"next-line",            forwline},
  215.     {"next-page",            forwpage},
  216.     {"next-paragraph",        gotoeop},
  217.     {"next-window",            nextwind},
  218.     {"next-word",            forwword},
  219.     {"open-line",            openline},
  220.     {"previous-line",        backline},
  221.     {"previous-page",        backpage},
  222.     {"previous-paragraph",        gotobop},
  223.     {"previous-window",        prevwind},
  224.     {"previous-word",        backword},
  225.     {"query-replace-string",    qreplace},
  226.     {"quick-exit",            quickexit},
  227.     {"quote-character",        quote},
  228.     {"read-file",            fileread},
  229.     {"redraw-display",        reposition},
  230.     {"replace-string",        sreplace},
  231.     {"save-file",            filesave},
  232.     {"scroll-next-up",        scrnextup},
  233.     {"scroll-next-down",        scrnextdw},
  234.     {"search-forward",        forwsearch},
  235.     {"search-reverse",        backsearch},
  236.     {"select-buffer",        usebuffer},
  237.     {"set-fill-column",        setfillcol},
  238.     {"set-mark",            setmark},
  239.     {"shell-command",        spawn},
  240.     {"shrink-window",        shrinkwind},
  241.     {"split-current-window",    splitwind},
  242. #if    V7 & BSD
  243.     {"suspend-emacs",        bktoshell},
  244. #endif
  245.     {"transpose-characters",    twiddle},
  246.     {"unbind-key",            unbindkey},
  247.     {"view-file",            viewfile},
  248.     {"write-file",            filewrite},
  249.     {"yank",            yank},
  250.  
  251.     {"",            NULL}
  252. };
  253.